<!DOCTYPE HTML>
<html>
<head>
<include file="public/head" />
<css file="__STATIC_CSS__/validate.css" />
</head>

<body>
<include file="public/header" />
<!--main-->
<div class="midder">
<div class="mc">
<h1 class="user_tit">用户登录</h1>

<div class="user_left">
<form method="POST" action="{:U('home/user/login')}" id="signupform">
<table width="100%" border="0" cellspacing="0" cellpadding="0"  class="Tabletext">
<tr>
	<td class="label">Email：</td>
    <td class="field"><input style="width:250px" class="uinput" type="email" name="email" autofocus/></td>
</tr>
<tr>
	<td class="label">密码：</td>
    <td class="field"><input style="width:250px" class="uinput" type="password" name="password" /></td>
</tr>

<tr>
    <td class="label">验证码：</td>
    <td class="field">
    <input style="width:250px" name="verify"  class="uinput" placeholder="请输入验证码" />
    </td>
    <td class="status"></td>
</tr>

<tr>
    <td class="label">&nbsp;</td>
    <td class="field">
    <img class="verifyimg reloadverify" src="{:U('home/user/captcha')}" alt="点击刷新验证码" style="cursor:pointer;" align="absmiddle">
    </td>
    <td class="status"></td>
</tr>

<tr>
    <td>&nbsp;</td>
    <td class="field">
    <input type="hidden" name="ret_url" value="{$ret_url}" />
    <input class="submit" type="submit" value="登录" style="margin-top:8px"/> 
    &nbsp;&nbsp;
    <a href="{:U('home/user/register')}">还没有帐号？</a>&nbsp;|&nbsp;
    <a href="{:U('home/user/forgetpwd')}">忘记密码</a>
    </td>
</tr>

</table>
</form>
	
<div class="item item-3rd">
<label>第三方登录：</label>
<a href="{:U('home/oauth/index', array('mod'=>'qq'))}" target="_top"><img title="QQ" src="__PUBLIC__/static/images/connect_qq.png"></a>
<a href="{:U('home/oauth/index', array('mod'=>'sina'))}" target="_top"><img title="新浪微博" src="__PUBLIC__/static/images/connect_sina_weibo.png"></a>
</div>
  

</div>


<div class="aside"></div>

<div class="cl"></div>

</div>
</div>

<script language="javascript">
$(function(){
	var verifyimg = $(".verifyimg").attr("src");
    $(".reloadverify").click(function(){
        if( verifyimg.indexOf('?')>0){
            $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
        }else{
            $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
        }
    });
});
</script>

<include file="public/footer" />
</body>
</html>